package at.jaki.ubb.crawling.demo.db;

import java.util.Collection;

import at.jaki.ubb.crawling.api.DbFacade;
import at.jaki.ubb.crawling.model.CEEntity;

public class MockDbFacade implements DbFacade {

	public synchronized void persist(CEEntity entity) {
		MockDataBase.getInstance().add(entity);
	}

	public synchronized void persistAll(Collection<CEEntity> coll) {
		for (CEEntity e : coll) {
			persist(e);
		}
	}

}
